package com.dayuanit.dy11.mall.mallspringboot.mapper;

import com.dayuanit.dy11.mall.mallspringboot.entity.Catalog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CatalogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Catalog record);

    int insertSelective(Catalog record);

    Catalog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Catalog record);

    int updateByPrimaryKey(Catalog record);

    List<Catalog> listFirstCatalog();

    List<Catalog> listSecondCatalog(@Param("parentId") Integer parentId);
}